package com.meixiang.activity.homes.staging;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import com.meixiang.R;
import com.meixiang.dialog.TradersPasswordtKeyDialog;
import com.meixiang.main.BaseActivity;
import com.meixiang.view.TitleView;

import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * @author yinsujun  Created at 2016/5/5 20:34
 *         分期详情--提前结清
 */
public class SettleStagingActivity extends BaseActivity{
    @Bind(R.id.title)
    TitleView title;
    @Bind(R.id.settle_staging_tv_repayment_money)
    TextView tvRepaymentMoney;
    @Bind(R.id.settle_staging_tv_commission)
    TextView tvCommission;
    @Bind(R.id.settle_bt_confirm)
    Button btConfirm;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        setContentView(R.layout.activity_settle_staging);
        ButterKnife.bind(this);
        super.onCreate(savedInstanceState);
    }

    @Override
    protected void initTitle() {
        setTitle("分期详情");

    }

    @Override
    protected void initView() {


    }

    @Override
    protected void setData() {

    }
    @OnClick({R.id.settle_bt_confirm})
    void click(View view){
        if(view.equals(btConfirm)){
//            passwordDialog.showDialog("美分期还款","0","忘记密码?");
            TradersPasswordtKeyDialog dialog=new TradersPasswordtKeyDialog(this,"美分期还款","0.00", new TradersPasswordtKeyDialog.OnCustomDialogListener() {
                @Override
                public void getPayPassWord(TradersPasswordtKeyDialog paymentKeyDialog, String password) {
                    Intent intent=new Intent(context,RepaymentSuccessActivity.class);
                    startActivity(intent);
                }
            });
//            startActivity(new Intent(context,RepaymentActivity.class));
        }
    }
    @Override
    public void onClick(View v) {

    }

}
